module fa1(A,B,Cin,S,Cout);

    input   A,B,Cin;
    output  S,Cout;
    assign  S = A^B^Cin;
    assign  Cout = A&B | B&Cin | Cin&A;

endmodule
